.groups-wrap {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  width: 280px;
  header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0 12px 14px 20px;
    label {
      color: #999;
      flex-shrink: 0;
      font-size: 13px;
    }
    button {
      font-size: 12px;
      span:last-child {
        margin-left: 5px;
      }
    }
  }
  &::after {
    background-color: #f0f0f0;
    bottom: 0;
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
  }
}

.groups {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px;
  position: relative;
  z-index: 1;
  &::-webkit-scrollbar {
    width: 0px;
  }
}

.group {
  align-items: center;
  border-right: 1px solid #f0f0f0;
  color: #333;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  padding: 6px 3px 6px 20px;
  position: relative;
  transition: background-color 0.2s;
  &:hover {
    background-color: #fafafa;
  }
  &.selected {
    background-color: #f0f0f0;
  }

  &::after {
    background-color: transparent;
    bottom: 0;
    content: '';
    position: absolute;
    right: -1px;
    top: 0;
    transition: background-color 0.2s;
    width: 2px;
  }
  &.selected::after {
    background-color: #4390f7;
  }

  .name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .count {
    text-align: right;
    width: 3em;
    span {
      background-color: #1890ff;
      border-radius: 4px;
      color: #fff;
      display: inline-block;
      font-size: 12px;
      padding: 2px 7px;
    }
    span.empty {
      background-color: #f0f0f0;
    }
  }
}
